export default {
	pie: {
		tooltip: {
			trigger: 'item'
		},
		formatter: '{c}%',
		series: [{
			name: '成品率',
			type: 'pie',
			minAngle: 12,
			radius: '90%',
			startAngle: 90,
			clockwise: false,
			avoidLabelOverlap: false,
			itemStyle: {
				borderWidth: 0
			},
			labelLine: {
				length: 5,
				length2: 10,
				minTurnAngle: 90
			},
			data: [{
				name: 'a',
				value: 12
			}, {
				name: 'b',
				value: 12
			}]
		}],
		color: ['#91cc75', '#fac858', '#73c0de', '#ee6666', '#5470c6', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc']
	},
	line: {
		tooltip: {
			trigger: 'item',
			formatter: '{b} : {c}'
		},
		grid: {
			left: '3%',
			right: '4%',
			bottom: '5%',
			top: '7%',
			containLabel: true
		},
		xAxis: {
			type: 'category',
			boundaryGap: false,
			axisLabel: {
				color: '#ffffff'
			},
			data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
		},
		yAxis: {
			type: 'value',
			scale: true,
			axisLabel: {
				color: '#ffffff'
			}
		},
		series: [{
			data: [1, 3, 5, 3, 4, 2, 3],
			type: 'line',
			smooth: true
		}]
	},
	bar: {
		tooltip: {
			trigger: 'axis',
			axisPointer: {
				type: 'shadow'
			}
		},
		grid: {
			left: '3%',
			right: '4%',
			bottom: '3%',
			top: '7%',
			containLabel: true
		},
		xAxis: {
			type: 'category',
			axisLabel: {
				color: '#ffffff'
			},
			data: [1, 2, 3, 4, 5, 6, 7]
		},
		yAxis: {
			type: 'value',
			axisLabel: {
				color: '#ffffff'
			}
		},
		series: [{
			data: [120, 200, 150, 80, 70, 110, 130],
			type: 'bar',
			showBackground: true,
			backgroundStyle: {
				color: 'rgba(180, 180, 180, 0.2)'
			}
		}],
		color: ['#5470c6', '#fc8452', '#73c0de', '#fac858', '#ee6666', '#91cc75', '#3ba272', '#9a60b4', '#ea7ccc']
	},
	gauge: {
		series: [{
			name: 'Pressure',
			type: 'gauge',
			title: { // 指针名称
				offsetCenter: [0, '90%'],
				color: '#fff',
				fontSize: 18
			},
			anchor: { // 指针中心
				show: true,
				showAbove: true,
				size: 6,
				itemStyle: {
					borderWidth: 1,
					color: '#fff'
				}
			},
			axisLabel: { // 刻度值
				distance: 12,
				fontSize: 10,
				color: '#fff'
			},
			axisLine: {
				lineStyle: {
					width: 6,
					// color: [
					// 	[0.25, '#FF6E76'],
					// 	[0.5, '#FDDD60'],
					// 	[0.75, '#58D9F9'],
					// 	[1, '#7CFFB2']
					// ]
				}
			},
			axisTick: { // 小刻度
				distance: 0,
				length: 8,
				lineStyle: {
					color: '#fff'
				}
			},
			data: [{
				value: 50,
				name: 'SCORE'
			}],
			detail: { // 当前值
				valueAnimation: true,
				formatter: '{value}',
				fontSize: 16,
				fontWeight: 500,
				color: '#fff'
			},
			pointer: { // 指针
				offsetCenter: [0, 5],
				length: '95%',
				width: 2,
				itemStyle: {
					color: '#f40'
				}
			},
			progress: { // 进度条
				show: true,
				width: 6
			},
			splitLine: { // 突出刻度线
				distance: 0,
				length: 13,
				lineStyle: {
					width: 2,
					color: '#fff'
				}
			}
		}],
		color: ['#73c0de']
	}
}
